package cn.tedu.loginsaltweb.exception;


import cn.tedu.loginsaltweb.response.JsonResult;
import cn.tedu.loginsaltweb.response.StatusCode;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GloblaHandlerException {
    @ExceptionHandler
    public JsonResult handleUserExists(ServiceException ex){
       return new JsonResult(StatusCode.OPERATION_FAIL);
    }
}
